package com.bingxue.edu.management.shop.model.query;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.time.LocalDate;

/**
 * 购课订单查询条件
 *
 * @author panbo
 * @since 2024/08/27 14:31
 */
@Data
@Schema(description = "购课订单统计查询条件")
public class OrderRecentStatQuery {
    @NotNull
    private LocalDate dateFrom;
    @NotNull
    private LocalDate dateTo;

    public LocalDate getDateTo() {
        return dateTo == null ? null : dateTo.plusDays(1);
    }
}
